package com.smarthospital.dao.mapper;

import com.smarthospital.entity.pojo.Hospital;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HospitalDao {
    int insert(@Param("pojo") Hospital pojo);

    int insertSelective(@Param("pojo") Hospital pojo);

    int insertList(@Param("pojos") List<Hospital> pojo);

    int update(@Param("pojo") Hospital pojo);

    List<Hospital> querHospitals();

    Hospital queryById(Long id);

    Hospital selectHospitalByCode(String code);
}
